﻿using IDAL;
using Microsoft.EntityFrameworkCore;
using Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace DAL
{
    /// <summary>
    /// 用户表的数据访问层
    /// </summary>
    public class UserInfoDAL:BaseDeleteDAL<UserInfo>,IUserInfoDAL
    {
        private UnmanContexts _dbContext;//添加上下文
        public UserInfoDAL(UnmanContexts dbContext) : base(dbContext)
        {
            _dbContext = dbContext;
        }

        /// <summary>
        /// 获取用户表所有数据
        /// </summary>
        /// <returns></returns>
        public DbSet<UserInfo> GetUserInfos()
        {
            return _dbContext.UserInfo;
        }


    }
}
